﻿using System;
using System.Collections.Generic;
using System.Linq;
using InvestmentIntelligence.DbModel.Models;

namespace InvestmentIntelligence.Data.Repository
{
    public interface IBenchmarkListUpdatableRepository : IBenchmarkListRepository
    {
        void Add(IEnumerable<BenchmarkList> list);
    }

    public interface IBenchmarkListRepository
    {
        /// <summary>
        ///     Get All benchmark saved in db
        /// </summary>
        /// <returns>Benchmark List</returns>
        List<T> GetList<T>(Func<IQueryable<BenchmarkList>, IEnumerable<T>> f);
    }
}